package cn.stylefeng.guns.modular.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 重量与价格表
 * </p>
 *
 * @author zhou
 * @since 2019-08-05
 */
@TableName("weight_price")
public class WeightPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /*模板名称*/
    @TableId(value = "name")
    private String name;
    /**
     * 首重（单位kg）
     */
    @TableField("first_weight")
    private BigDecimal firstWeight;

    /**
     * 首重价格（单位元）
     */
    @TableField("first_price")
    private BigDecimal firstPrice;

    /**
     * 续重（单位kg）
     */
    @TableField("continues_weight")
    private BigDecimal continuesWeight;

    /**
     * 续重价格（单位元）
     */
    @TableField("continues_price")
    private BigDecimal continuesPrice;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getFirstWeight() {
        return firstWeight;
    }

    public void setFirstWeight(BigDecimal firstWeight) {
        this.firstWeight = firstWeight;
    }

    public BigDecimal getFirstPrice() {
        return firstPrice;
    }

    public void setFirstPrice(BigDecimal firstPrice) {
        this.firstPrice = firstPrice;
    }

    public BigDecimal getContinuesWeight() {
        return continuesWeight;
    }

    public void setContinuesWeight(BigDecimal continuesWeight) {
        this.continuesWeight = continuesWeight;
    }

    public BigDecimal getContinuesPrice() {
        return continuesPrice;
    }

    public void setContinuesPrice(BigDecimal continuesPrice) {
        this.continuesPrice = continuesPrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Override
    public String toString() {
        return "WeightPrice{" +
        "id=" + id +
        ", firstWeight=" + firstWeight +
        ", firstPrice=" + firstPrice +
        ", continuesWeight=" + continuesWeight +
        ", continuesPrice=" + continuesPrice +
        "}";
    }
}
